﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace FinalProject
{
    public class HocVanBangCap
    {
        #region Attributes
        private RootObject _BangCap;

        public RootObject BangCap
        {
            get { return _BangCap; }
            set { _BangCap = value; }
        }
        private RootObject _Truong;

        public RootObject Truong
        {
            get { return _Truong; }
            set { _Truong = value; }
        }
        private RootObject _ChuyenNganh;

        public RootObject ChuyenNganh
        {
            get { return _ChuyenNganh; }
            set { _ChuyenNganh = value; }
        }
        private DateTime _NgayBD;

        public DateTime NgayBD
        {
            get { return _NgayBD; }
            set { _NgayBD = value; }
        }
        private DateTime _NgayKT;

        public DateTime NgayKT
        {
            get { return _NgayKT; }
            set { _NgayKT = value; }
        }
        private string _ThongTinLienQuan;

        public string ThongTinLienQuan
        {
            get { return _ThongTinLienQuan; }
            set { _ThongTinLienQuan = value; }
        }
        #endregion

        public HocVanBangCap()
        {
            this._BangCap = new BangCap();
            this._ChuyenNganh = new RootObject();
            this._ThongTinLienQuan = "";
            this._Truong = new RootObject();
        }

        public HocVanBangCap(RootObject bangCap, RootObject truong, RootObject chuyenNganh, DateTime ngayBD, DateTime ngayKT, string thongTin)
        {
            this._BangCap = bangCap;
            this._ChuyenNganh = chuyenNganh;
            this._NgayBD = ngayBD;
            this._NgayKT = ngayKT;
            this._ThongTinLienQuan = thongTin;
            this._Truong = truong;
        }

        public HocVanBangCap(RootObject bangCap, RootObject truong)
        {
            this._BangCap = bangCap;
            this._Truong = truong;
        }

        public HocVanBangCap(HocVanBangCap hocVan)
        {
            this._BangCap = hocVan.BangCap;
            this._ChuyenNganh = hocVan._ChuyenNganh;
            this._NgayBD = hocVan._NgayBD;
            this._NgayKT = hocVan._NgayKT;
            this._ThongTinLienQuan = hocVan._ThongTinLienQuan;
            this._Truong = hocVan._Truong;
        }
    }
}
